package com.liuyucheng.idea_springboot.service.impl;

import com.liuyucheng.idea_springboot.dao.IndexMapper;
import com.liuyucheng.idea_springboot.service.IIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class IndexServiceImpl implements IIndexService {

    private IndexMapper mapper;

    @Autowired
    public void setMapper(IndexMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public List<Map<String, Object>> selectAll() {
        return mapper.selectAll();
    }
}
